using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;
using System.Configuration;
using System.Web.Http;
using Unity.WebApi;

namespace Servicios.Seguridad
{
	public static class UnityConfig
	{
		public static void RegisterComponents()
		{
			var container = new UnityContainer();
           
            var unityConfigurationSection = ConfigurationManager.GetSection("unity") as UnityConfigurationSection;

            unityConfigurationSection.Configure(container);
			GlobalConfiguration.Configuration.DependencyResolver = new UnityDependencyResolver(container);
		}
	}
}